-- GENERATED SPELL FOR [Guse's War Rider] --


function spell0_14943(pUnit, Event) --@Fireball Volley,n/a--
pUnit:FullCastSpellOnTarget(15285,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14943', 646, 1)
end

function spell1_14943(pUnit, Event) --@Stun Bomb Attack,n/a--
pUnit:FullCastSpellOnTarget(21188,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14943', 4000, 1)
end

function spell2_14943(pUnit, Event) --@Throw Liquid Fire,Self--
pUnit:FullCastSpellOnTarget(23969,pUnit)
pUnit:RegisterEvent('Sorts_14943', 600, 1)
end

function Sorts_14943(pUnit, Event)
local choix_sorts_14943 = math.random(0, 2)
if choix_sorts_14943 == 0 then
pUnit:RegisterEvent('spell0_14943', 1, 1)
end
if choix_sorts_14943 == 1 then
pUnit:RegisterEvent('spell1_14943', 1, 1)
end
if choix_sorts_14943 == 2 then
pUnit:RegisterEvent('spell2_14943', 1, 1)
end
end

function mob14943_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_14943', math.random(1500, 3000), 1)
end

function mob14943_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14943_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14943_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(14943, 1, 'mob14943_Action')
RegisterUnitEvent(14943, 2, 'mob14943_Leave')
RegisterUnitEvent(14943, 3, 'mob14943_Kill')
RegisterUnitEvent(14943, 4, 'mob14943_Die')
